package com.dvj.gulimall.boot.starter.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 线程池配置
 *
 * @author Dvj
 * @date 2021/8/4 16:47
 */
@Data
@ConfigurationProperties(prefix = "gulimall.thread")
public class ThreadPoolConfigurationProperties {

    /**
     * 核心线程数
     */
    private Integer coreSize = 10;

    /**
     * 最大线程数
     */
    private Integer maxSize = 100;

    /**
     * 线程空闲等待时间
     */
    private Integer keepAliveTime = 10;

    /**
     * 工作队列任务数
     */
    private Integer queueSize = 10000;
}
